/**
 * 
 */
package travibot.ui.gui.forms.viewers;

import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Tree;

import travibot.ui.gui.forms.providers.content.BuildingsContentProvider;
import travibot.ui.gui.forms.providers.label.BuildingsLabelProvider;


/**
 * @author tajzivit
 *
 */
public class BuildingsTreeViewer extends TreeViewer {

    public BuildingsTreeViewer(Tree tree) {

        super(tree);
        
        init();
    }

    private void init(){
        
        this.setLabelProvider(new BuildingsLabelProvider());
        this.setContentProvider(new BuildingsContentProvider());
    }
}
